projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbaf427
)
cmd: eeprom: add bus switching support for all i2c drivers
author
Nikita Kiryanov
<
[email protected]
>
Sat, 16 Apr 2016 14:55:02 +0000
(17:55 +0300)
committer
Tom Rini
<
[email protected]
>
Fri, 20 May 2016 21:02:06 +0000
(17:02 -0400)
The i2c_init function is always provided when CONFIG_SYS_I2C is
defined. No need to limit ourselves to just one supported I2C driver
(soft_i2c). Update the #ifdef conditions to support bus switching for
all I2C drivers.
Cc: Heiko Schocher <
[email protected]
>
Cc: Marek Vasut <
[email protected]
>
Cc: Igor Grinberg <
[email protected]
>
Cc: Tom Rini <
[email protected]
>
Signed-off-by: Nikita Kiryanov <
[email protected]
>
cmd/eeprom.c
patch
|
blob
|
history
diff --git
a/cmd/eeprom.c
b/cmd/eeprom.c
index e5457ba0cf44d82344517a1b9b4fbaa1d1853f96..208b4138c116ae421098497fff854da9847b48e0 100644
(file)
--- a/
cmd/eeprom.c
+++ b/
cmd/eeprom.c
@@
-72,7
+72,7
@@
void eeprom_init(int bus)
#endif
/* I2C EEPROM */
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C
_SOFT
)
+#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
#if defined(CONFIG_SYS_I2C)
if (bus >= 0)
i2c_set_bus_num(bus);